package com.liu.yuoj.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.yuoj.model.dto.question.QuestionQueryRequest;
import com.liu.yuoj.model.entity.Question;
import com.liu.yuoj.model.vo.QuestionVO;

/**
* @author Administrator
* @description 针对表【question(题目表)】的数据库操作Service
* @createDate 2025-01-12 21:33:08
*/
public interface QuestionService extends IService<Question> {

    //校验参数
    void valid(Question question, boolean add);

    //获取题目视图
    QuestionVO getQuestionVO(Question question);

    //查询请求包装器
    Wrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage);
}
